import Vue from "vue"
import Vuex from 'vuex'
import moduleCart from './cart.js'
import moduleUser from './user.js'
// 将 Vuex注册为插件
Vue.use(Vuex)
const store = new Vuex.Store({
  modules: {
    m_cart: moduleCart,
    m_user: moduleUser
  }
})

export default store